package cn.com.dcsgo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 购物车结算信息
 *
 * @author Dcsgo
 * @since 2025/11/15 14:14
 */
@Data
@AllArgsConstructor
@Schema(description = "购物车结算信息")
public class CartMoneyVO {
    /**
     * 总金额
     */
    @Schema(description = "总金额")
    private BigDecimal totalMoney;
    /**
     * 最终金额
     */
    @Schema(description = "最终金额")
    private BigDecimal finalMoney;
    /**
     * 运费
     */
    @Schema(description = "运费")
    private BigDecimal transMoney;
    /**
     * 减免金额（正数）
     */
    @Schema(description = "减免金额（正数）")
    private BigDecimal subtractMoney;

    public CartMoneyVO() {
        totalMoney = BigDecimal.ZERO;
        finalMoney = BigDecimal.ZERO;
        transMoney = BigDecimal.ZERO;
        subtractMoney = BigDecimal.ZERO;
    }
}
